package top.korori.component;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;
import top.korori.system.service.SysMenuService;


@Component
public class InitCacheRolePerms implements CommandLineRunner {

    @Autowired
    private SysMenuService sysMenuService;


    @Override
    public void run(String... args) throws Exception {
        sysMenuService.initCacheRolePerms();
    }
}
